home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / overview / dts.utilities / utilitiescommon.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.6 KB  |  64 lines

  1. /*
  2.     File:        UtilitiesCommon.h
  3.  
  4.     Contains:    Collection of Utilities for DTS Sample code
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1988-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/18/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #define kUseCreatorString        (-1)        /* Pass this to StandardAbout if you would
  24.                                                like the string stored in your creator
  25.                                                resource to appear in the about box. */
  26. #define kUseRealAppName            (-2)        /* Pass this to StandardAbout if you would
  27.                                                like the name of your application to
  28.                                                appear in the about box. */
  29.  
  30. #define rUtilErrorAlert            256            /* dlg ID used in ErrorAlert */
  31. #define rUtilErrorMessageAlert    257            /* dlg ID used in ErrorAlertMessage */
  32. #define rStdAboutAlert            258            /* dlg ID used for About box. */
  33.  
  34. #define rUtilStrings            256            /* STR# resource we use for errors. */
  35. #define eStandardErr            1            /* Generic "An error occured" string. */
  36. #define eNoMenuBar                2            /* "No 'MBAR' resource was found." */
  37.  
  38. #define kButtonFrameSize        3            /* button frame’s pen size */
  39. #define kButtonFrameInset        (-4)        /* inset rectangle adjustment around button */
  40.  
  41. #define kExtremeNeg                (-32768)    /* kExtremeNeg and kExtremePos are used to set
  42.                                                up wide open rectangles and regions. */
  43. #define kExtremePos                (32767 - 1)    /* required to address an old region bug */
  44.     
  45. #define kDITop                    0x0050        /* kTopLeft - for positioning the Disk
  46.                                                Initialization dialogs. */
  47. #define kDILeft                    0x0070
  48.  
  49. #define kControlInvisible        0
  50. #define kControlVisible            0xFF
  51. #define kCntlActivate            0            /* enabled control’s hilite state */
  52. #define kCntlDeactivate            0xFF        /* disabled control’s hilite state */
  53. #define kCntlOn                    1            /* control’s value when truned on */
  54. #define kCntlOff                0            /* control’s value when truned off */
  55. #define kSelect                    1            /* select the control */
  56. #define kDeselect                0            /* deselect the control */
  57.  
  58. #define kScrollbarWidth            16            /* kScrollBarWidth can be used in
  59.                                                calculating values for control
  60.                                                positioning and sizing.*/
  61. #define kScrollbarAdjust        (kScrollbarWidth - 1)
  62.  
  63.  
  64.